#pragma strict
/////////////////////////////////////////////////////////////////////////////
//时间内缩放效果.
/////////////////////////////////////////////////////////////////////////////
var from:Vector3;
var to:Vector3 = Vector3.one;
var time:float = 1;

function Start () {
	if(from != Vector3.zero){
		transform.localScale = from;
	}
	iTween.ScaleTo(gameObject,iTween.Hash("scale",to,"time",time,"easetype",iTween.EaseType.spring,"oncomplete","OnComplete","oncompleteparams",gameObject));
}

function OnComplete(t:Object){
	
}